package com.kx.center.util;

import java.util.Random;

public class Salts {
	   public static final int SALT_LENGTH = 16;    
	    
	   public static byte[] nextSalt() {
	      return nextSalt(SALT_LENGTH);
	   } 

	   public static byte[] nextSalt(int salt_length) {
	      byte[] salt = new byte[salt_length];
	      Random rand = new Random();
	      rand.nextBytes(salt);
	      return salt;
	   } 
}
